<include path="header" />
  <div class="m-title">
    <ul>
   	  <li>记事本</li>
      <li class="right"><a href="addnote">+ 新记事</a></li>
      <li></li>
    </ul>
  </div>
  <div class="box top-desc">   
    <table class="multi-cols th-back">
      <tr>
        <th>
        主题
        </th>
        <th>
        编辑时间
        </th> 
        <th>
        </th>
      </tr>      
      <? foreach($notepads as $ns){ ?>      
      <tr id="notelist_tr_<?=$ns['notepad_id']?>">
        <td><a href="editnote?id=<?=$ns['notepad_id']?>"><?=$ns['subject']?></a></td>
        <td><?=date('Y-m-d H:i:s', $ns['mktime']) ?></td>
        <td><a href="notedelete?notepad_id=<?=$ns['notepad_id']?>" target="ajaxpost">删除</a></td>
      </tr>
      <? } ?>
    </table>
    <iframe name="ajaxpost" class="hidden" width="0" height="0" frameborder="0"></iframe>    
  </div>  
<include path="footer" />

